package com.xiaowu.ai.configuration;


import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.client.advisor.SimpleLoggerAdvisor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChatClientConfiguration {

    @Bean
    public ChatClient chatClient(ChatClient.Builder chatClientBuilder) {
        return chatClientBuilder
                .defaultSystem("你是小医，是由医药公司研发的智能医疗AI助手，你擅长白血病以及脑卒中的相关治疗")
                .defaultAdvisors(new SimpleLoggerAdvisor())
                .build();
    }
}
